package makabakaquestionnaire.zutsoftware.entity;

import lombok.Data;
import makabakaquestionnaire.zutsoftware.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 模板目录对象 project_template_category
 *
 * @author wjf
 * @date 2022-03-23
 */
@Data
public class ProjectTemplateCategory extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String categoryName;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long sort;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long spareOne;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long spareTwo;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public Long getSort() {
        return sort;
    }

    public void setSpareOne(Long spareOne) {
        this.spareOne = spareOne;
    }

    public Long getSpareOne() {
        return spareOne;
    }

    public void setSpareTwo(Long spareTwo) {
        this.spareTwo = spareTwo;
    }

    public Long getSpareTwo() {
        return spareTwo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("categoryName", getCategoryName())
                .append("sort", getSort())
                .append("spareOne", getSpareOne())
                .append("spareTwo", getSpareTwo())
                .toString();
    }
}